 <div class="row">
        <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
            <div class="widget am-cf">
                <div class="widget-head am-cf">
                    <div class="widget-title am-fl">自定义菜单</div>
                    <div class="widget-function am-fr">
                        <a href="javascript:;" id="createMenus" class="am-icon-cloud-download">生成菜单</a>
                    </div>

                </div>

                <div class="widget-body">

                    <div class="am-u-sm-12 am-u-md-6 am-u-lg-6">
                        <div class="am-form-group">
                            <div class="am-btn-toolbar">
                                <div class="am-btn-group am-btn-group-xs">
                                    <a href="javascript:;" onclick="return editMenus(0)" class="am-btn am-btn-default am-btn-success"><span class="am-icon-plus"></span> 新增</a>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="am-u-sm-12 am-u-md-6 am-u-lg-3">
                        <div class="am-form-group tpl-table-list-select">&nbsp;</div>
                    </div>
                    <div class="am-u-sm-12 am-u-md-12 am-u-lg-3">
                        
                    </div>
                  
     				<div >
                        <table width="100%" class="am-table tpl-table-black am-table-hover am-table-bordered" id="dataTables">
                            <thead>
                                <tr>
                                    <th>ID</th>
                                    <th width="15%">排序</th>
                                    <th>名称</th>
                                    <th width="15%">类型</th>
                                    <th>操作</th>
                                    <th width="15%">时间</th>
                                    <th width="15%">操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                {{range $index, $elem := .lists}}
                                    <tr>
                                        <td>{{$elem.Id}}</td>
                                        <td>{{$elem.Orderby}}</td>
                                        <td>{{$elem.MenuName}}</td>
                                        <td>
                                            {{if eq $elem.MenuType 1}} 
                                                <span class="am-badge am-badge-success am-radius">跳转网页</span> 
                                            {{else}} 
                                                <span class="am-badge am-badge-danger am-radius">发送消息</span> 
                                            {{end}}
                                        </td>
                                        <td>{{$elem.MenuContent}}</td>
                                        <td>{{$elem.UpdatedAt|getDate}}</td>
                                        <td><div class="tpl-table-black-operation" style="text-align:right;">
            &nbsp;<a href="javascript:;" class="am-btn am-btn-success am-btn-xs" onclick="addChildMenus({{$elem.Id}});return false;">添加子菜单</a>
                &nbsp;<a  class="am-btn am-btn-secondary am-btn-xs" onclick="editMenus({{$elem.Id}});return false">编辑</a>
                &nbsp;<a href="javascript:;" class="am-btn am-btn-danger am-btn-xs" onclick="delMenus({{$elem.Id}});return false;">删除</a></div></td>
                                    </tr>
                                    {{range $i, $e := $elem.Childs}}
                                    <tr>
                                        <td>{{$e.Id}}</td>
                                        <td>{{$e.Orderby}}</td>
                                        <td>|-------{{$e.MenuName}}</td>
                                        <td>
                                            {{if eq $e.MenuType 1}} 
                                                <span class="am-badge am-badge-success am-radius">跳转网页</span> 
                                            {{else}} 
                                                <span class="am-badge am-badge-danger am-radius">发送消息</span> 
                                            {{end}}
                                        </td>
                                        <td>{{$e.MenuContent}}</td>
                                        <td>{{$e.UpdatedAt|getDate}}</td>
                                        <td><div class="tpl-table-black-operation " style="text-align:right;">
                <a  class="am-btn am-btn-secondary am-btn-xs" onclick="editMenus({{$e.Id}});return false">编辑</a>
                &nbsp;<a href="javascript:;" class="am-btn am-btn-danger am-btn-xs" onclick="delMenus({{$e.Id}});return false;">删除</a></div></td>
                                    </tr>
                                    {{end}}
                                
                                {{end}}
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
</div>